package com.yeban.pattem.proxy.jdk;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/6
 */
public class Test {

    public static void main(String[] args) {
        // 目标对象
        BankService target = new BankService();
        // 代理对象
        IService proxy = new DynamicProxyBankLogService(target).getProxy();
        // 执行登录方法
        proxy.login(1L, "123");
        proxy.register(2L, "zs", "456");

    }
}
